package code.google.jcontainer.resolver;

import code.google.jcontainer.AbstractContainer;

import java.lang.annotation.Annotation;
import java.lang.reflect.Field;

/**
 * Context object for resolving Field annotation
 *
 * @author <a href="mailto:jfox.young@gmail.com">Young Yang</a>
 */
public class FieldResolveContext extends ResolveContext{

    /**
     * the annotated Field
     */
    private Field field;

    public FieldResolveContext(AbstractContainer container, String componentName, Class componentClass, Object component, Field field) {
        super(container,componentName, componentClass, component);
        this.field = field;
    }

    /**
     * return the annotated Field
     */
    public Field getField() {
        return field;
    }

}